package com.grammer;


@Descriptions(author = "doctor",desc = "doctor",age = 20)
public class Doctor extends People {

  public static void main(String[] args) throws ClassNotFoundException {
    Class cls = Class.forName("com.grammer.Doctor");
    Descriptions description = (Descriptions) cls.getAnnotation(Descriptions.class);
    if (description != null) {
      System.out.println(description.author() + ":" + description.desc() + ":" + description.age());
    }
  }
}
